﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SmartCollector.WebUI.Helpers.PaginatedList<SmartCollector.WebUI.Models.tbl_Item>>" %>

<%@ Import Namespace="SmartCollector.WebUI.Models" %>
<%@ Import Namespace = "SmartCollector.WebUI.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    News
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Theme" runat="server">
    <link href="/Content/files/<%= Themes.Instace.GetTheme((int) ViewData["catId"]).Name %>.css"
        rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
    <div id="ja-main" style="width: 100%;">
        <div class="inner clearfix">
            <div id="ja-contentwrap" class="">
                <div id="ja-content" class="column" style="width: 100%;">
                    <div id="ja-current-content" class="column" style="width: 100%;">
                        <div class="ja-content-main clearfix">
                            <div class="blog clearfix">
                                <%-- SingleNews Partial--%>
                                <%Html.RenderPartial("SingleNewsPartial");%>
                                <%-- SingleItem Partial--%>
                                <%--AllNews Partial--%>
                                <%Html.RenderPartial("AllNewsPartial");%>
                                <%--AllNews Partial--%>
                                <p class="counter">
                                    <%for (int page = 0; page < Model.PageCount; page++)
                                      {
                                          if (page == Model.PageIndex)
                                          {%>
                                    <span>Page
                                        <%=(page+1).ToString() %>
                                        of
                                        <%=Model.PageCount.ToString() %></span>
                                    <%}
                                      } %>
                                </p>
                                
                                <div id="pager">
		                            <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount)%>
	                            </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" runat="server">
    <%Html.RenderPartial("RightContent/RightDetails"); %>
</asp:Content>
